<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/layui.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/js/layui.js"></script>
    <style>
        table{
            margin-top: 50px;
            margin-bottom: 30px;
        }
    </style>
</head>
<body>
    <table class="layui-table">
        <colgroup>
            <col width="50%">
            <col width="50%">
        </colgroup>
        <thead>
        <tr>
            <th> </th>
            <th> </th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>用户名</td>
            <td>${selectuser.username}</td>
        </tr>
        <tr>
            <td>余额</td>
            <td>${selectuser.balance}</td>
        </tr>
        <tr>
            <td>电话</td>
            <td>${selectuser.tel}</td>
        </tr>
        <tr>
            <td>状态</td>
            <td>
                <c:choose>
                    <c:when test="${selectuser.isCold==1}">
                        冻结
                    </c:when>
                    <c:when test="${selectuser.isCold==0}">
                        非冻结
                    </c:when>
                </c:choose>
            </td>
        </tr>
        </tbody>
    </table>
    <form class="layui-form" action="${pageContext.request.contextPath}/queryuser">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input type="text" maxlength="20" name="username" placeholder="要查询的用户名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">查询</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
        <div class="layui-bg-gray">
            <p style="font-size: 30px">${querymsg}</p>
        </div>
    </form>
</body>
</html>
